//flowable流程相关
const state = {
    nodeMap: new Map(),
    isEdit: null,
    selectedNode: {},
    selectFormItem: null,
    design:{},
    template: null,
    runningList: [],
    noTakeList: [],
    endList: [],
    diagramMode: 'design',
}

const mutations = {
    selectedNode(state, val) {
        state.selectedNode = val
    },
    loadForm(state, val){
        state.design = val
    },
    setIsEdit(state, val){
        state.isEdit = val
    },
    setTemplate(state,val){
        console.log("----------",JSON.stringify(val));
        state.template = val
    }
}

const actions = {}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
